import 'package:flutter/material.dart';

class MListView extends StatelessWidget {
  Widget _itemView(String content) {
    return Column(
      children: <Widget>[
        Container(
          padding: EdgeInsets.all(8),
          child: Text(
            content,
            style: TextStyle(fontSize: 20, fontWeight: FontWeight.w400),
          ),
          decoration:
              BoxDecoration(border: Border.all(color: Colors.amber, width: 1)),
        ),
        SizedBox(
          height: 10,
        ),
      ],
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("listview"),
        centerTitle: true,
      ),
      body: ListView(
        children: <Widget>[
          _itemView("Listview 1"),
          _itemView("Listview 2"),
          _itemView("Listview 3"),
          _itemView("Listview 4"),
          _itemView("Listview 5"),
          _itemView("Listview 6"),
        ],
      ),
    );
  }
}
